﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace Sbook.Data
{
    public class NewsGroup
    {
        private string groupID;

        public string GroupID
        {
            get { return groupID; }
            set { groupID = value; }
        }

        private string groupName;

        public string GroupName
        {
            get { return groupName; }
            set { groupName = value; }
        }

        private string gStatus;

        public string GStatus
        {
            get { return gStatus; }
            set { gStatus = value; }
        }
        public NewsGroup NewsGroupIDataReader(IDataReader dr)
        {
            Data.NewsGroup obj = new Data.NewsGroup();
            obj.GroupID = (dr["GroupID"] is DBNull) ? string.Empty : dr["GroupID"].ToString();
            obj.GroupName = (dr["GroupName"] is DBNull) ? string.Empty : dr["GroupName"].ToString();
            obj.GStatus = (dr["gStatus"] is DBNull) ? string.Empty : dr["gStatus"].ToString();
            return obj;
        }
    }
}